package com.shwread.android.qysw.step.api;


import com.shwread.android.qysw.step.network.BaseHttp;
import com.shwread.android.qysw.step.network.OnRequestEnd;

import java.util.HashMap;

public class API {
    public static final String HOST = "http://hzlqsw.aliapp.com/";

    public static final String SEND_SMS = "SendSms.do";

    public static final String userInfo = "hzlqswserver/health/userInfo";

    public static void cancelRequest(String tag) {
        BaseHttp.cancelAll(tag);
    }

    public static void getUserInfo(int userId, int enterpriseId, OnRequestEnd onRequestEnd) {
        HashMap<String, Object> params = new HashMap<>();
        params.put("userId", userId);
        params.put("enterpriseId", enterpriseId);
        CommonAPI.postString(HOST + userInfo, params, onRequestEnd);
    }


}
